package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.AssessmentQuality;
import com.zhijian.medical.entity.vo.request.AssessmentQualitySearchVo;
import com.zhijian.medical.entity.vo.response.AssessmentQualityVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AssessmentQualityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AssessmentQuality record);

    int insertSelective(AssessmentQuality record);

    AssessmentQuality selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AssessmentQuality record);

    int updateByPrimaryKey(AssessmentQuality record);

    /**
     * 查询总数
     *
     * @param assessmentQualitySearchVo
     * @return
     */
    int count(AssessmentQualitySearchVo assessmentQualitySearchVo);

    /**
     * 查询列表
     *
     * @param assessmentQualitySearchVo
     * @return
     */
    List<AssessmentQualityVo> selectList(AssessmentQualitySearchVo assessmentQualitySearchVo);

    /**
     * 查询单个
     *
     * @param assessmentQualitySearchVo
     * @return
     */
    AssessmentQualityVo selectOne(AssessmentQualitySearchVo assessmentQualitySearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    AssessmentQualityVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param assessmentQualitySearchVo
     * @return
     */
    void deleteByCondition(AssessmentQualitySearchVo assessmentQualitySearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<AssessmentQuality> entities);

    /**
     * 根据PersonId查询列表
     *
     * @param personId
     * @return
     */
    List<AssessmentQualityVo> selectListByPersonId(Long personId);
}